<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>17-遍历对象的方法</title>
	</head>
	<body>
		<script type="text/javascript">
			var obj = {
				uid:1,
				title:'北京冬奥会冬残奥会',
				content:'北京冬奥会冬残奥会总结表彰大会隆重举行',
				addtime:'2022-04-08'
			};
			//for...in遍历对象
			for(key in obj){
				console.log('Key::'+key);
				console.log(obj[key]);
			}
			
			
			
			
		</script>
	</body>
</html>
